package cn.tuling.org.mapper;

import cn.tuling.org.domain.Writer;
import cn.tuling.org.query.WriterQuery;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface WriterMapper {

    // 查询全部
    List<Writer> findAll();

    // 添加
    void add(Writer department);

    // 删除
    void delete(Long id);

    // 修改
    void update(Writer department);

    //  查询所有的count
    Integer queryByCount(WriterQuery query);

    // 分页
    List<Writer> queryByPage(WriterQuery query);
}
